<!-- Begin issues/status.tpl -->
<script language="javascript" type="text/javascript">
function f_cnf_inp_del(p_ipid)
{ldelim}
	if (confirm('{$lg->info_del_conf}'))
		window.location.href='?module=time_sheet&action=delete&ipid='+p_ipid;
{rdelim}
</script>
<form method="post" action="?module=time_sheet&action=show&userid={$userid}">
{opentable}
<tr>{$perio}</tr>
<tr>
	<td class="sectiontableentry2" width="20%" align="right" valign="middle">{$lg->group}</td>
	<td class="sectiontableentry1" width="80%">
		<select name="gid">
			<option value=""></option>
			{foreach from=$smarty.session.groups item=group}	
				<option {if ($gid == $group)} selected {/if} value="{$group}" >{groupname id=$group}</option >
			{/foreach}
			</select>
	</td>		
</tr>
<tr>
<td class="sectiontableentry1" colspan="2"><input type="submit" name="validate" class="button" align="center" value={$lg->OK}></td>
</tr>
</table>
</form>
{opentable}
{titlebar title=$title}
{foreach from=$t_datas item=s_datas}
	{if $s_datas.line_type == 'H'}
		<table class = "s_cost" border = "0" style = "margin-left: 10px ;" >
			<tr >
				<td class="htitle" colspan="8">{$lg->weekn} {$s_datas.week}</td>
			</tr>
	{elseif $s_datas.line_type == 'N'}
			<tr >
				<td width = "8%">{$s_datas.cdprj}</td>
				<td width = "2%">{$s_datas.issueid}</td>
				<td width = "20%" ><a href="?module=issues&action=cost&issueid={$s_datas.issueid}&gid={$s_datas.gid}" >{$s_datas.objet|stripslashes}</a></td>
				<td width = "10%" align="left">{$s_datas.mtime|userdate}</td>
				<td width = "10%" align="left">{$s_datas.ttask}</td>
				<td width = "4%" align="left">{$s_datas.cost}</td>
				<td width = "20%" align="left" > 
				<p id="{$s_datas.index}" style="cursor :{$s_datas.cursr}" onclick ="SetCommentInp(this, '{$s_datas.sncmt}', '{$s_datas.incmt}');" > {$s_datas.sncmt} </p> 
				</td>
				<td width = "4%" align="left">
					{if $s_datas.edit}
					<a href="?module=time_sheet&action=modify&sub=edit&ipid={$s_datas.inpid}&idusr={$userid}">
					<img src="{$smarty.env.imgs.edit}" width="16" height="16" border="0" alt="Edit" />
					</a>
					{/if}
				</td>
				<td width = "4%" align="left">
					{if $s_datas.edit}
					<a href="#" onclick="f_cnf_inp_del({$s_datas.inpid});" >
					<img src="{$smarty.env.imgs.delete}" width="16" height="16" border="0" alt="Delete" />
					</a>
					{/if}
				</td>			
			</tr>
	{elseif $s_datas.line_type == 'T'}
			<tr style = "font:bold;">
				<td colspan = "4">&nbsp;</td>
				<td align="left"> {$lg->total}</td>
				<td align="left"> {$s_datas.cost}</td>
				<td colspan="2" >&nbsp;</td>
			</tr>			
	{elseif $s_datas.line_type == 'F'}
		</table>	
	{/if}
{/foreach}
</table>
<!-- End issues/status.tpl -->